<template>
  <div class="index-wrap">
    <div class="index-left">
      <div class="index-left-block">
        <h5>全部产品</h5>

        <ul>
          <!-- PC产品 -->
          <h4>{{ productList.pc.title }}</h4>
          <li v-for="item in productList.pc.list" :key="item.id">
            <!-- <router-link to="item.url">
              {{ item.name }}
            </router-link> -->
             <a :href="item.url"> {{ item.name }}</a>
          </li>
        </ul>

        <!-- 手机应用类 -->
        <ul>
          <h4>{{ productList.app.title }}</h4>
          <li v-for="item in productList.app.list" :key="item.id">
            <!-- <router-link to="item.url">
              {{ item.name }}
            </router-link> -->
             <a :href="item.url"> {{ item.name }}</a>
          </li>
        </ul>

        <h5>最新消息</h5>
        <!-- 最新消息 -->
        <ul>
          <h4>{{ productList.news.title }}</h4>
          <li v-for="item in productList.news.list" :key="item.id">
            <!-- <router-link to="item.url">
              {{ item.name }}
            </router-link> -->
            <a :href="item.url"> {{ item.name }}</a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      productList: {
        pc: {
          title: "PC产品",
          list: [
            {
              name: "数据统计",
              url: "https://www.ekgc.cn/series.shtml",
            },
            {
              name: "数据预测",
              url: "https://www.ekgc.cn/goods",
            },
            {
              name: "流量分析",
              url: "https://tiku.ekgc.cn/testing/klogin",
              hot: true,
            },
            {
              name: "广告发布",
              url: "https://www.ekgc.cn/zhuanti/books.shtml",
            },
          ],
        },
        app: {
          title: "手机应用类",
          last: true,
          list: [
            {
              name: "91助手",
              url: "https://www.kgc.cn/brand/school/list/beijing.shtml",
            },
            {
              name: "产品助手",
              url: "https://www.kgc.cn/zhuanti/ai_pc.shtml",
              hot: true,
            },
            {
              name: "智能地图",
              url: "https://www.ekgc.cn/zhuanti/books.shtml",
            },
            {
              name: "团队语音",
              url: "https://www.ekgc.cn/app",
            },
          ],
        },
        news: {
          title: "",
          last: true,
          list: [
            {
              name: "新闻条目1条新闻1条新闻1条新闻",
              url: "https://www.ekgc.cn/member/elogin?redirect_url=https%3A%2F%2Fwww.ekgc.cn%2Fapp",
            },
            {
              name: "新闻条目2条新闻1条新闻1条新闻",
              url: "https://www.ekgc.cn/member/elogin?redirect_url=https%3A%2F%2Fwww.ekgc.cn%2Fgoods",
              hot: true,
            },
            {
              name: "新闻条目3条新闻3",
              url: "https://www.ekgc.cn/zhuanti/books.shtml#con2",
            },
            {
              name: "新闻条目4条发布广告",
              url: "https://www.kgc.cn/zhuanti/TeacherStrength.shtml",
            },
          ],
        },
      },
    };
  },
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}
.index-wrap {
  width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.index-left {
  float: left;
  width: 300px;
  text-align: left;
}
.index-right {
  float: left;
  width: 900px;
}
.index-left-block {
  margin: 15px;
  background: #fff;
  box-shadow: 0 0 1px #ddd;
}
.index-left-block .hr {
  margin-bottom: 20px;
}
.index-left-block h5 {
  background: #4fc08d;
  color: #fff;
  padding: 10px 15px;
  margin-bottom: 20px;
}
.index-left-block h4 {
  padding: 0 15px 5px 15px;
  font-weight: bold;
  color: #222;
}
.index-left-block ul {
  font-size: 12px;
  padding: 5px 10px;
}
.index-left-block li {
  padding: 5px;
}
.index-board-list {
  overflow: hidden;
  color: darkgrey;
}
.index-board-item {
  float: left;
  width: 400px;
  background: #fff;
  box-shadow: 0 0 1px #ddd;
  padding: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
}
.index-board-item-inner {
  min-height: 125px;
  padding-left: 120px;
}
/* .index-board-car .index-board-item-inner{
  background: url(../assets/images/1.png) no-repeat;
}
.index-board-loud .index-board-item-inner{
  background: url(../assets/images/2.png) no-repeat;
}
.index-board-earth .index-board-item-inner{
  background: url(../assets/images/3.png) no-repeat;
}
.index-board-hill .index-board-item-inner{
  background: url(../assets/images/4.png) no-repeat;
} */
.index-board-item h2 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 15px;
}
.line-last {
  margin-right: 0;
}
.index-board-button {
  margin-top: 20px;
}
.lastest-news {
  min-height: 512px;
}
.hot-tag {
  background: red;
  color: #fff;
}
.new-item {
  display: inline-block;
  width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a{
  color: rgba(7, 6, 6, 0.856);
}
</style>